#include <gflags/gflags.h>
#include <iostream>
DEFINE_int32(port, 8080, "这是一个默认端口号");
DEFINE_bool(reuse_addr, true, "是否开启地址端重用");
DEFINE_string(ip, "127.0.0.1", "默认ip地址");


int main(int argc, char *argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);

    std::cout << FLAGS_ip << std::endl;
    std::cout << FLAGS_port << std::endl;
    std::cout << FLAGS_reuse_addr << std::endl;
    return 0;
}